import request from '@/utils/request'
import { qs } from 'qs';

export function fetchList(query) {
  return request({
    url: '/archive/page',
    method: 'get',
    params: query
  })
}

export function delAri(data) {
  return request({
    url: '/archive/delete',
    method: 'delete',
    params: data
  })
}

export function updateAri(data) {
  return request({
    url: '/archive/update',
    method: 'put',
    params: data
  })
}

export function addAri(data) {
  return request({
    url: '/archive/add',
    method: 'put',
    params: data
  })
}

export function delAriBat(params) {
  return request({
    url: '/archive/delBatch?'+params,
    method: 'delete',
    // params: {ids:ids},
    // paramsSerializer: function(params) {
    //   return qs.stringify(params, {arrayFormat: 'repeat'})
    // }
  })
}